פסיקות מערכות ובקרים. Components of a simple PC. I/O Device Types Block Devices. Typical Data Rates מהירות טיפוסית נתונים
|
|
- Marcus Green
- 5 years ago
- Views:
Transcription
1 מנהל התקנים DMA Introduction to Systems Programming מבוא לתכנות מערכות Device Manager גישה יש ירה לז י כר ו ן פסיקות קלט פלט Input-Output Devices, s, and I/O Architectures ניהול ציוד ה יקפי INTERRUPTS שא ול ק ו בל מערכ ו ת מחש ב י ם 2 ארכיטקטורה של קלט/פלט, מערכות ובקרים שאול קובל מערכות - Computers Saul Coval Components of a simple PC CPU Video controller Memory Hard drive controller ב סיסי PC USB controller Network controller Computer internals (inside the box ) מבנה מח שב Outside world Slide 3 I/O Device Types Block Devices block size of bytes block can be read/written individually typical: disks / floppy / CD Character Devices delivers / accepts a sequential stream of characters non-addressable typical: keyboard, mouse, printer, network Other: Monitor, Clock Slide 4 s Device interrupts are fed to the processor using a special piece of hardware standard for this device is the Intel 8259 interrupt controller, and has been since early PCs IRQ The IRQ is a number set in the computer for the interrupt request. assigned to devices to allow it to "interrupt", or send a signal, to the computer when it is finished processing. In older computers, you had to manually set the IRQ values for devices. Newer computers and operating systems use plug'n'play, which allows you to not need to set IRQ values. Typical Data Rates מהירות טיפוסית של מעבר נתונים Slide 5 Slide 6 1
2 Why s Are Used to Process Information one thing at a time appear to do many things at once multitasking operating system like Windows the processor two basic ways that the processor could do this: Polling: turns going to each device and asking if they have anything they need it to do. ing: let the devices request them when they need its attention software interrupts. used by various software programs in response to different events that occur as the operating system and applications run Slide 7 Polling & s how does the CPU know that a particular device is ready or requires attention? these requests are, generally, asynchronous software program must include routines to handle these requests 2 techniques are available to service external devices: Polling s לכידות ופסיקות (ס יים את עב ודת ו) א ו איך ה מעב ד י ודע שר כיב או ציו ד ה יקפי מ וכן דורש שר ות של המ עבד? הבקשות הם ב דרך כלל אס ינכר ונית (אי ן התאמת שעונים). התוכנה ח יי בת לכלו ל פרוצד ורות לטיפ ול בא ותם בקשות. ישנם 2 טכניקות למ תן שרות לאותם רכ י בים א ו צי וד: סריקה לצ ור ך לכ ידה פסיקות Slide 8 Polling & s Polling Run Program Interrogate device 1 Polling: CPU periodically polls ALL external devices & takes action if required s: external device indicates request for attention by sending a signal via a control line it stops the current CPU activity and responds to the device that requested attention must be written in the main program (by a programmer, in advance) high level language used Action? No Interrogate device 2 Action? No Interrogate device n Action? No Yes Yes Yes Device subroutine Device subroutine Device subroutine Slide 9 Slide 1 Polling If, after interrogating, attention is required from a particular device an appropriate subroutine is called & executed (it does not take long) when finished the CPU returns to the main program if the frequency of polling is high a significant overhead is incurred on a CPU If, however, the frequency of polling is low - events may be undetected - data lost due to latency etc. Slide 11 interrupt asserted interrupt 1 asserted Run Program (a) s service routine return registers from stack service routine return registers from stack Timer Emergency button interrupt a) generic b) specific Run Program (b) return return Timer response Program Emergency response programm Slide
3 special circuitry within a mp carries interrupt signals: Request Line (IRL) The external device sends a logic signal to the CPU when it requires attention The CPU completes current instruction first, before transferring control to - the Service Routine (ISR) ISR is a software routine but it is called by hardware ISR can occur anywhere in the main program s Data BUS How interrupts happen. Connections between devices and interrupt controller actually use interrupt lines on the bus rather than dedicated wires Slide 13 Slide 14 IRQ Lines and the System Bus The devices that use interrupts trigger them by signaling over lines provided on the ISA system bus. some of them are only used internally by the system, and therefore they are not given wires on the system bus. These are interrupts, 1, 2, 8 and 13, and are never available to expansion cards (remember, IRQ2 is now wired to IRQ9 on the motherboard). Priority priority level an old PC/XT, the priority of the interrupts is, 1, 2, 3, 4, 5, 6, 7. On a modern machine second set of eight interrupts is piped through the IRQ2 channel priorities become, 1, (8, 9, 1, 11, 12, 13, 14, 15), 3, 4, 5, 6, 7. IRQs 8 to 15 take the place of IRQ2. Non-Maskable s (NMI) can be used for serious conditions that demand the processor's immediate attention. s, Multiple Devices and Conflicts is not feasible for more than one device to use an interrupt at one time, The Nature of Resource Conflicts some of the ways that resource conflicts manifest themselves. System hangs or lockups, particularly while using a peripheral device. (Memory) parity errors on parity-enabled systems. Noise or other problems from sound cards. Junk being printed on your printer. The mouse pointer hanging and refusing to move, or moving in a stuttering fashion. Error messages from Windows 95, messages about the PC not operating at maximum performance, or the system dropping to "Safe Mode" or "MS-DOS Compatibility Mode". Errors and crashes of applications for no apparent reason. Slide 15 Slide 16 Resource Conflict Resolution general steps that can be followed to fix this sort of problem Determine what all the devices in the system are using for resources. Identify the conflicting devices. Change the resource settings on one or more of the devices so they are no longer conflicting processes in private virtual address spaces shared kernel code and data in shared address space data system call traps data...and upcalls (e.g., signals) The kernel sets up process execution contexts to virtualize the machine. Threads or processes enter the kernel for services. CPU and devices force entry to the kernel to handle exceptional events. Slide 17 Summary of IRQs and Their Typical Uses IRQ Bus Line? Priorit y Typical Default Use Other Common Uses no 1 System timer None 1 no 2 Keyboard controller 2 no (rerout ed) n/a 3 8/16-bit /16-bit 12 None; cascade for IRQs Replaced by IRQ 9 COM2 (second serial port) COM1 (first serial port) None Modems, very old (EGA) video cards, COM3 (third serial port), COM4 (fourth serial port) COM4 (fourth serial port), modems, sound cards, network cards, tape accelerator cards COM3 (third serial port), modems, sound cards, network cards, tape accelerator cards Slide
4 IRQ Bus Line? Priorit y Typical Default Use Other Common Uses IRQ Bus Line? Priority Typical Default Use Other Common Uses 5 8/16-bit 13 Sound card 6 8/16-bit /16-bit 15 Floppy disk controller LPT1 (first parallel port) LPT2 (second parallel port), LPT3 (third parallel port), COM3 (third serial port), COM4 (fourth serial port), modems, network cards, tape accelerator cards, hard disk controller on old PC/XT Tape accelerator cards LPT2 (second parallel port), COM3 (third serial port), COM4 (fourth serial port), modems, sound cards, network cards, tape accelerator cards 8 no 3 Real-time clock None 9 16-bit only 4 Network cards, sound cards, SCSI host adapters, PCI devices, rerouted IRQ2 devices bit only 16-bit only 16-bit only 13 no bit only 16-bit only PS/2 mouse Floating Point Unit (FPU / NPU / Math Coprocessor) Network cards, sound cards, SCSI host adapters, secondary IDE channel, quaternary IDE channel, PCI devices Network cards, sound cards, SCSI host adapters, VGA video cards, tertiary IDE channel, quaternary IDE channel, PCI devices Network cards, sound cards, SCSI host adapters, VGA video cards, tertiary IDE channel, PCI devices None 9 Primary IDE channel SCSI host adapters 1 Secondary IDE channel Network cards, SCS Slide 19 Slide 2 I/O Software Layers Layers of the I/O system Slide 21 Slide 22 Device-Independent Interface Buffering (a) Without a standard driver interface (b) With a standard driver interface Slide 23 (a) Unbuffered input (b) Buffering in user space (c) Buffering in the kernel followed by copying to user space (d) Double buffering in the kernel Slide
5 Buffering Options No buffering: lots of context switching. User space buffering (read syscall for n bytes): buffer needs to be pinned in memory Kernel buffer with copy: only kernel page needs to be pinned. What happens with characters received during copy? Best: double buffering in kernel: while kernel buffer is being copied, buffer 1 accepts new characters. Then they switch roles. Networking may involve many copies Slide 25 Slide 26 procedure The main program continues to run until the first interrupt is asserted in the interrupt request line (IRL) The interrupt hardware latches the signal and interrupts the CPU activity The execution starts when the CPU finishes its current job when the interrupt service routine (ISR) has finished the CPU returns to the main program (status - when left - preserved in the registers) Slide 27 Service Routine The interrupt must not lead to loss of data The content of certain registers is saved to memory. These are: program counter process status accumulator interrupt asserted return Preserve status Detect source Process response Restore status Return to interrupted program Slide 28 What Happens During an? Anatomy of a device request Complete Current Instruction Push Flags 1 TEMP 3 2 1: Instruction n Instruction n+1 Internal Intr NO NO NMI INTR NO TF Execute Next Instruction 1 YES YES YES IF 1 Acknowledge Read Type Code Set TEMP=TF IF= TF= Push CS and IP call ISR NMI NO YES Execute ISR pop IP and CS popf Resume ed Procedure 5 Disk CPU controller controller Operating system 3: Return handler 2: Process interrupt Left: sequence as seen by hardware Request sent to controller, then to disk Disk responds, signals disk controller which tells interrupt controller controller notifies CPU Right: interrupt handling (software point of view) Slide 29 Slide 3 5
6 Making a system call xffffffff User space Kernel space (OS) Return to caller Trap to kernel 3 Trap code in register 2 4 Increment SP 9 Call read 1 Push arguments 5 6 Sys call Dispatch handler 8 Library (read call) 7 User code System call: read(fd,buffer,length) Program pushes arguments, calls library Library sets up trap, calls OS OS handles system call Control returns to library Library returns to user program handling Slide 31 Slide 32 Windows places the specified DPC Object on the target processor's DPC queue. DPC priorities: low, medium, and high Slide 33 Slide 34 Command & Flow Command & Flow Slide 35 Slide
7 Command & Flow Command & Flow Slide 37 Slide 38 Command & Flow Command & Flow Slide 39 Slide 4 Command & Flow Command & Flow dead time Slide 41 Slide
8 Command & Flow Command & Flow dead time Slide 43 Slide 44 Command & Flow Command & Flow Slide 45 Slide 46 Command & Flow Command & Flow Slide 47 Slide
9 Command & Flow Command & Flow Slide 49 Slide 5 Command & Flow Command & Flow Slide 51 Slide 52 Command & Flow Command & Flow Slide 53 Slide
10 Command & Flow Command & Flow Slide 55 Slide 56 Command & Flow Command & Flow Slide 57 Slide 58 Command & Flow Command & Flow Slide 59 Slide 6 1
11 Command & Flow Command & Flow Slide 61 Slide 62 Transfer Statistics Ultra DMA data transfer 8 I/O s per command Includes 7 I/O s for storing the command Includes 1 I/O to read the status register in the interrupt Additional I/O s to setup DMA controller 1 per command Command & Flow Slide 63 Slide 64 Command & Flow Command & Flow Slide 65 Slide
12 Command & Flow Command & Flow Slide 67 Slide 68 Command & Flow Command & Flow Slide 69 Slide 7 Command & Flow Command & Flow Slide 71 Slide
13 Command & Flow Command & Flow Slide 73 Slide 74 Command & Flow Command & Flow Slide 75 Slide 76 Command & Flow Command & Flow Slide 77 Slide
14 Command & Flow Command & Flow Slide 79 Slide 8 Command & Flow Transfer Statistics Ultra DMA data transfer No I/O registers are memory mapped uses normal PCI memory reads and writes to retrieve commands 1 per group of I/O requests Commands that complete while an interrupt is processed will not generate an additional interrupt Slide 81 Slide 82 Command Chains Block Diagram CPB Next Address Register CPB PRD Pointer Next CPB Pointer PRD PRD PRD PIO Mode 8/16-Bits ATA/ATAPI Bus Mode Channel X ATA/ATAPI Bus 8/16-Bits Channel Y ATA Core CPB PRD Pointer Next CPB Pointer PRD PRD PRD 8/16-Bits 4KB FIFO 16-Bits 16-Bits 4KB FIFO FIFO ATA Sequencer PCI Sequencer CPB PRD Pointer PRD PRD PRD PCI Channel Arbiter Next CPB Pointer BIOS PCI Configuration Header Registers PCI Core CPB Lookup Table CPB Address CPB Address CPB Address... CPB Lookup Table Address Register 32/64-Bits Slide 83 Slide
15 Test Conditions System (Micron) 5Mhz P3 192MB RAM NT 4. SP6 Intel 8281 Chipset 33Mhz PCI slot on a 66Mhz bus Micron Northbridge Iometer Fileserver access pattern 1% Random, 8% Reads, 6% 4k blocks (remainder spread from 512 bytes to 64kbytes) Process Boot using motherboard controller (same drive for all tests) UDMA-1 card has for drives attached card is in the same slot using the same 4 drives I/O's per Second File Server Access Pattern Ultra-1 Queued 2 Ultra-1 Queued 3 Ultra-1 Queued 4 Ultra-1 Queued Outstanding I/O's Ultra-1 controller using drives that support queueing. The Ultra-1 controller does not using the queing capability of the drive. Slide 86 Slide 87 File Server Access Pattern File Server Access Pattern I/O's per Second Outstanding I/O's Ultra-1 controller using drives that do not support queueing Ultra-1 Non-Queued 2 Ultra-1 Non-Queued 3 Ultra-1 Non-Queued 4 Ultra-1 Non-Queued I/O's per Second controller using drive queing capability 1 Queued 2 Queued 3 Queued 4 Queued Outstanding I/O's Slide 88 Slide 89 File Server Access Pattern Interprocess communication I/O's per Second Overlay of Ultra-1 controller using drives that support queing with controller using queued capability. The Ultra-1 controller does not using the queing capability of the drive. 1 Ultra-1 Queued 2 Ultra-1 Queued 3 Ultra-1 Queued 4 Ultra-1 Queued 1 Queued 2 Queued 3 Queued 4 Queued Outstanding I/O's Processes want to exchange information with each other Many ways to do this, including Network Pipe (special file): A writes into pipe, and B reads from it A B Slide 9 Slide
פסיקות מערכות ובקרים. Why are interrupts important. The INT and IRET instructions. Saul Coval Computer Systems 1.
PIC - /Jan/00 מנהל התקנים DMA Introduction to Systems Programming מבוא לתכנות מערכות Device Manager גישה יש ירה לז י כר ו ן פסיקות קלט פלט Input-Output Devices, Controllers, and I/O Architectures ניהול
More informationInput/Output Systems
Input/Output Systems CSCI 315 Operating Systems Design Department of Computer Science Notice: The slides for this lecture have been largely based on those from an earlier edition of the course text Operating
More informationINPUT/OUTPUT ORGANIZATION
INPUT/OUTPUT ORGANIZATION Accessing I/O Devices I/O interface Input/output mechanism Memory-mapped I/O Programmed I/O Interrupts Direct Memory Access Buses Synchronous Bus Asynchronous Bus I/O in CO and
More informationOperating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester
Operating System: Chap13 I/O Systems National Tsing-Hua University 2016, Fall Semester Outline Overview I/O Hardware I/O Methods Kernel I/O Subsystem Performance Application Interface Operating System
More informationComputer System Overview OPERATING SYSTEM TOP-LEVEL COMPONENTS. Simplified view: Operating Systems. Slide 1. Slide /S2. Slide 2.
BASIC ELEMENTS Simplified view: Processor Slide 1 Computer System Overview Operating Systems Slide 3 Main Memory referred to as real memory or primary memory volatile modules 2004/S2 secondary memory devices
More informationPC Interrupt Structure and 8259 DMA Controllers
ELEC 379 : DESIGN OF DIGITAL AND MICROCOMPUTER SYSTEMS 1998/99 WINTER SESSION, TERM 2 PC Interrupt Structure and 8259 DMA Controllers This lecture covers the use of interrupts and the vectored interrupt
More informationI/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum)
I/O Fall 2011 Tore Larsen Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum) Big Picture Today we talk about I/O characteristics interconnection devices & controllers (disks
More informationI/O. Fall Tore Larsen. Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum)
I/O Fall 2010 Tore Larsen Including slides from Pål Halvorsen, Tore Larsen, Kai Li, and Andrew S. Tanenbaum) Big Picture Today we talk about I/O characteristics interconnection devices & controllers (disks
More informationComputer System Overview
Computer System Overview Operating Systems 2005/S2 1 What are the objectives of an Operating System? 2 What are the objectives of an Operating System? convenience & abstraction the OS should facilitate
More informationby I.-C. Lin, Dept. CS, NCTU. Textbook: Operating System Concepts 8ed CHAPTER 13: I/O SYSTEMS
by I.-C. Lin, Dept. CS, NCTU. Textbook: Operating System Concepts 8ed CHAPTER 13: I/O SYSTEMS Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests
More informationINPUT/OUTPUT ORGANIZATION
INPUT/OUTPUT ORGANIZATION Accessing I/O Devices I/O interface Input/output mechanism Memory-mapped I/O Programmed I/O Interrupts Direct Memory Access Buses Synchronous Bus Asynchronous Bus I/O in CO and
More informationInput/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture
168 420 Computer Architecture Chapter 6 Input/Output Input/Output Problems Wide variety of peripherals Delivering different amounts of data At different speeds In different formats All slower than CPU
More informationCMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 09, SPRING 2013
CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 09, SPRING 2013 TOPICS TODAY I/O Architectures Interrupts Exceptions FETCH EXECUTE CYCLE 1.7 The von Neumann Model This is a general
More informationECE 485/585 Microprocessor System Design
Microprocessor System Design Lecture 3: Polling and Interrupts Programmed I/O and DMA Interrupts Zeshan Chishti Electrical and Computer Engineering Dept Maseeh College of Engineering and Computer Science
More informationDigital System Design
Digital System Design by Dr. Lesley Shannon Email: lshannon@ensc.sfu.ca Course Website: http://www.ensc.sfu.ca/~lshannon/courses/ensc350 Simon Fraser University i Slide Set: 15 Date: March 30, 2009 Slide
More informationThese three counters can be programmed for either binary or BCD count.
S5 KTU 1 PROGRAMMABLE TIMER 8254/8253 The Intel 8253 and 8254 are Programmable Interval Timers (PTIs) designed for microprocessors to perform timing and counting functions using three 16-bit registers.
More informationC02: Interrupts and I/O
CISC 7310X C02: Interrupts and I/O Hui Chen Department of Computer & Information Science CUNY Brooklyn College 2/8/2018 CUNY Brooklyn College 1 Von Neumann Computers Process and memory connected by a bus
More informationCS 134. Operating Systems. April 8, 2013 Lecture 20. Input/Output. Instructor: Neil Rhodes. Monday, April 7, 14
CS 134 Operating Systems April 8, 2013 Lecture 20 Input/Output Instructor: Neil Rhodes Hardware How hardware works Operating system layer What the kernel does API What the programmer does Overview 2 kinds
More informationAccessing I/O Devices Interface to CPU and Memory Interface to one or more peripherals Generic Model of IO Module Interface for an IO Device: CPU checks I/O module device status I/O module returns status
More information8086 Interrupts and Interrupt Responses:
UNIT-III PART -A INTERRUPTS AND PROGRAMMABLE INTERRUPT CONTROLLERS Contents at a glance: 8086 Interrupts and Interrupt Responses Introduction to DOS and BIOS interrupts 8259A Priority Interrupt Controller
More informationThe K Project. Interrupt and Exception Handling. LSE Team. May 14, 2018 EPITA. The K Project. LSE Team. Introduction. Interrupt Descriptor Table
and Exception Handling EPITA May 14, 2018 (EPITA) May 14, 2018 1 / 37 and Exception Handling Exception : Synchronous with program execution (e.g. division by zero, accessing an invalid address) : Asynchronous
More information操作系统概念 13. I/O Systems
OPERATING SYSTEM CONCEPTS 操作系统概念 13. I/O Systems 东南大学计算机学院 Baili Zhang/ Southeast 1 Objectives 13. I/O Systems Explore the structure of an operating system s I/O subsystem Discuss the principles of I/O
More informationLast class: Today: Course administration OS definition, some history. Background on Computer Architecture
1 Last class: Course administration OS definition, some history Today: Background on Computer Architecture 2 Canonical System Hardware CPU: Processor to perform computations Memory: Programs and data I/O
More informationCommon Computer-System and OS Structures
Common Computer-System and OS Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection General System Architecture Oct-03 1 Computer-System Architecture
More informationThe control of I/O devices is a major concern for OS designers
Lecture Overview I/O devices I/O hardware Interrupts Direct memory access Device dimensions Device drivers Kernel I/O subsystem Operating Systems - June 26, 2001 I/O Device Issues The control of I/O devices
More informationINPUT/OUTPUT ORGANIZATION
INPUT/OUTPUT ORGANIZATION Accessing I/O Devices I/O interface Input/output mechanism Memory-mapped I/O Programmed I/O Interrupts Direct Memory Access Buses Synchronous Bus Asynchronous Bus I/O in CO and
More informationGeneric Model of I/O Module Interface to CPU and Memory Interface to one or more peripherals
William Stallings Computer Organization and Architecture 7 th Edition Chapter 7 Input/Output Input/Output Problems Wide variety of peripherals Delivering different amounts of data At different speeds In
More informationOperating Systems 2010/2011
Operating Systems 2010/2011 Input/Output Systems part 1 (ch13) Shudong Chen 1 Objectives Discuss the principles of I/O hardware and its complexity Explore the structure of an operating system s I/O subsystem
More informationComputer Organization ECE514. Chapter 5 Input/Output (9hrs)
Computer Organization ECE514 Chapter 5 Input/Output (9hrs) Learning Outcomes Course Outcome (CO) - CO2 Describe the architecture and organization of computer systems Program Outcome (PO) PO1 Apply knowledge
More informationMobile Operating Systems Lesson 01 Operating System
Mobile Operating Systems Lesson 01 Operating System Oxford University Press 2007. All rights reserved. 1 Operating system (OS) The master control program Manages all software and hardware resources Controls,
More informationOrganisasi Sistem Komputer
LOGO Organisasi Sistem Komputer OSK 5 Input Output 1 1 PT. Elektronika FT UNY Input/Output Problems Wide variety of peripherals Delivering different amounts of data At different speeds In different formats
More informationI/O Systems. Jo, Heeseung
I/O Systems Jo, Heeseung Today's Topics Device characteristics Block device vs. Character device Direct I/O vs. Memory-mapped I/O Polling vs. Interrupts Programmed I/O vs. DMA Blocking vs. Non-blocking
More informationSystems Programming and Computer Architecture ( ) Timothy Roscoe
Systems Group Department of Computer Science ETH Zürich Systems Programming and Computer Architecture (252-0061-00) Timothy Roscoe Herbstsemester 2016 AS 2016 Exceptions 1 17: Exceptions Computer Architecture
More informationDevice-Functionality Progression
Chapter 12: I/O Systems I/O Hardware I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Incredible variety of I/O devices Common concepts Port
More informationChapter 12: I/O Systems. I/O Hardware
Chapter 12: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations I/O Hardware Incredible variety of I/O devices Common concepts Port
More informationProcess Scheduling Queues
Process Control Process Scheduling Queues Job queue set of all processes in the system. Ready queue set of all processes residing in main memory, ready and waiting to execute. Device queues set of processes
More informationCS330: Operating System and Lab. (Spring 2006) I/O Systems
CS330: Operating System and Lab. (Spring 2006) I/O Systems Today s Topics Block device vs. Character device Direct I/O vs. Memory-mapped I/O Polling vs. Interrupts Programmed I/O vs. DMA Blocking vs. Non-blocking
More informationLast 2 Classes: Introduction to Operating Systems & C++ tutorial. Today: OS and Computer Architecture
Last 2 Classes: Introduction to Operating Systems & C++ tutorial User apps OS Virtual machine interface hardware physical machine interface An operating system is the interface between the user and the
More informationModule 11: I/O Systems
Module 11: I/O Systems Reading: Chapter 13 Objectives Explore the structure of the operating system s I/O subsystem. Discuss the principles of I/O hardware and its complexity. Provide details on the performance
More informationMMX Enhanced. 586 GXM-AV Main Board. Trademarks and / or Registered trademarks are the properties of their respective owners.
586 GXM-AV Main Board Trademarks and / or Registered trademarks are the properties of their respective owners. User s Manual Version 1.1 The Information presented in this publication has been carefully
More informationGrundlagen Microcontroller Interrupts. Günther Gridling Bettina Weiss
Grundlagen Microcontroller Interrupts Günther Gridling Bettina Weiss 1 Interrupts Lecture Overview Definition Sources ISR Priorities & Nesting 2 Definition Interrupt: reaction to (asynchronous) external
More informationCS 201. Exceptions and Processes. Gerson Robboy Portland State University
CS 201 Exceptions and Processes Gerson Robboy Portland State University Control Flow Computers Do One Thing From startup to shutdown, a CPU reads and executes (interprets) a sequence of instructions, one
More informationChapter 13: I/O Systems. Operating System Concepts 9 th Edition
Chapter 13: I/O Systems Silberschatz, Galvin and Gagne 2013 Chapter 13: I/O Systems Overview I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations
More informationComputer Architecture CS 355 Busses & I/O System
Computer Architecture CS 355 Busses & I/O System Text: Computer Organization & Design, Patterson & Hennessy Chapter 6.5-6.6 Objectives: During this class the student shall learn to: Describe the two basic
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 2 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 2 System I/O System I/O (Chap 13) Central
More information1 PC Hardware Basics Microprocessors II PC Hardware Basics Fall 2008 Hadassah College Dr. Martin Land
1 2 Basic Computer Ingredients Central Processing Unit (CPU) Usually a microprocessor Includes ALU, internal registers, control Cache Memory A copy of a small part of Main Memory Allows fast access to
More information[08] IO SUBSYSTEM 1. 1
[08] IO SUBSYSTEM 1. 1 OUTLINE Input/Output (IO) Hardware Device Classes OS Interfaces Performing IO Polled Mode Interrupt Driven Blocking vs Non-blocking Handling IO Buffering & Strategies Other Issues
More informationModule 12: I/O Systems
Module 12: I/O Systems I/O hardwared Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Performance 12.1 I/O Hardware Incredible variety of I/O devices Common
More informationChapter 13: I/O Systems
Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance I/O Hardware Incredible variety of I/O devices Common
More informationHardware OS & OS- Application interface
CS 4410 Operating Systems Hardware OS & OS- Application interface Summer 2013 Cornell University 1 Today How my device becomes useful for the user? HW-OS interface Device controller Device driver Interrupts
More informationInput-Output (I/O) Input - Output. I/O Devices. I/O Devices. I/O Devices. I/O Devices. operating system must control all I/O devices.
Input - Output Input-Output (I/O) operating system must control all I/O devices issue commands to devices catch interrupts handle errors provide interface between devices and rest of system main categories
More informationECE331: Hardware Organization and Design
ECE331: Hardware Organization and Design Lecture 31: Computer Input/Output Adapted from Computer Organization and Design, Patterson & Hennessy, UCB Overview for today Input and output are fundamental for
More informationVirtual Machines & the OS Kernel
Comp 120, Spring 05 4/21 Lecture page 1 Virtual Machines & the OS Kernel (not in the book) L23 Virtual Machines & the OS Kernel 1 Power of Contexts: Sharing a CPU Virtual Memory 1 Physical Memory Virtual
More informationEPIC board ensures reliability in the toughest environment
EPIC board ensures reliability in the toughest environment The XE 800 SBC is a high performance single board computer (SBC) with a rich family of essential I/O functions. It integrates video, serial ports,
More information1 PC Hardware Basics Microprocessors (A) PC Hardware Basics Fal 2004 Hadassah College Dr. Martin Land
1 2 Basic Computer Ingredients Processor(s) and co-processors RAM main memory ROM initialization/start-up routines Peripherals: keyboard/mouse, display, mass storage, general I/O (printer, network, sound)
More informationModule 12: I/O Systems
Module 12: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Performance Operating System Concepts 12.1 Silberschatz and Galvin c
More informationInterrupt/Timer/DMA 1
Interrupt/Timer/DMA 1 Exception An exception is any condition that needs to halt normal execution of the instructions Examples - Reset - HWI - SWI 2 Interrupt Hardware interrupt Software interrupt Trap
More informationChapter 5 Input/Output. I/O Devices
Chapter 5 Input/Output 5.1 Principles of I/O hardware 5.2 Principles of I/O software 5.3 I/O software layers 5.4 Disks 5.5 Clocks 5.6 Character-oriented terminals 5.7 Graphical user interfaces 5.8 Network
More informationINTERRUPTS in microprocessor systems
INTERRUPTS in microprocessor systems Microcontroller Power Supply clock fx (Central Proccesor Unit) CPU Reset Hardware Interrupts system IRQ Internal address bus Internal data bus Internal control bus
More informationChapter 5 - Input / Output
Chapter 5 - Input / Output Luis Tarrataca luis.tarrataca@gmail.com CEFET-RJ L. Tarrataca Chapter 5 - Input / Output 1 / 90 1 Motivation 2 Principle of I/O Hardware I/O Devices Device Controllers Memory-Mapped
More informationLecture 13 Input/Output (I/O) Systems (chapter 13)
Bilkent University Department of Computer Engineering CS342 Operating Systems Lecture 13 Input/Output (I/O) Systems (chapter 13) Dr. İbrahim Körpeoğlu http://www.cs.bilkent.edu.tr/~korpe 1 References The
More informationOperating Systems CMPSCI 377 Spring Mark Corner University of Massachusetts Amherst
Operating Systems CMPSCI 377 Spring 2017 Mark Corner University of Massachusetts Amherst Last Class: Intro to OS An operating system is the interface between the user and the architecture. User-level Applications
More informationChapter 13: I/O Systems
Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance 13.2 Silberschatz, Galvin
More informationUnit 3 and Unit 4: Chapter 4 INPUT/OUTPUT ORGANIZATION
Unit 3 and Unit 4: Chapter 4 INPUT/OUTPUT ORGANIZATION Introduction A general purpose computer should have the ability to exchange information with a wide range of devices in varying environments. Computers
More informationCSC227: Operating Systems Fall Chapter 1 INTERRUPTS. Dr. Soha S. Zaghloul
CSC227: Operating Systems Fall 2016 Chapter 1 INTERRUPTS Dr. Soha S. Zaghloul LAYOUT 1.3 Devices Controlling Techniques 1.3.1 Polling 1.3.2 Interrupts H/W Interrupts Interrupt Controller Process State
More informationInterrupt is a process where an external device can get the attention of the microprocessor. Interrupts can be classified into two types:
8085 INTERRUPTS 1 INTERRUPTS Interrupt is a process where an external device can get the attention of the microprocessor. The process starts from the I/O device The process is asynchronous. Classification
More informationNote: The configurations and factory defaults described here are for EPM-15 BIOS version
EPM-15 CMOS SETUP PARAMETERS This article provides reference information and tips for setting CMOS Setup parameters on the EPM-15 (Manx). Start CMOS Setup by pressing Delete during the early boot cycle.
More informationChapter 13: I/O Systems
Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance Objectives Explore the structure of an operating
More informationTABLE OF CONTENTS 1. INTRODUCTION 2. SPECIFICATION 3. HARDWARE INSTALLATION 6BA
6BA TABLE OF CONTENTS 1. INTRODUCTION 1.1. PREFACE...1-1 1.2. KEY FEATURES...1-1 1.3. PERFORMANCE LIST...1-2 1.4. BLOCK DIAGRAM...1-3 1.5. INTRODUCE THE Pentium II / III Processor...1-4 1.6. What is AGP?...1-5
More informationReview Questions on Computer Basics
Review Questions on Computer Basics 1. Distinguish between and define (see glossary in Maxfield and Brown s Bebop Bytes Back for the definition of terms not found in Andrews A Guide to Managing and Maintaining
More informationProgrammed I/O Interrupt-Driven I/O Direct Memory Access (DMA) I/O Processors. 10/12/2017 Input/Output Systems and Peripheral Devices (02-2)
Programmed I/O Interrupt-Driven I/O Direct Memory Access (DMA) I/O Processors 1 Principle of Interrupt-Driven I/O Multiple-Interrupt Systems Priority Interrupt Systems Parallel Priority Interrupts Daisy-Chain
More informationUnit 5. Memory and I/O System
Unit 5 Memory and I/O System 1 Input/Output Organization 2 Overview Computer has ability to exchange data with other devices. Human-computer communication Computer-computer communication Computer-device
More informationLecture 2: September 9
CMPSCI 377 Operating Systems Fall 2010 Lecture 2: September 9 Lecturer: Prashant Shenoy TA: Antony Partensky & Tim Wood 2.1 OS & Computer Architecture The operating system is the interface between a user
More informationInput Output (IO) Management
Input Output (IO) Management Prof. P.C.P. Bhatt P.C.P Bhatt OS/M5/V1/2004 1 Introduction Humans interact with machines by providing information through IO devices. Manyon-line services are availed through
More informationChapter 6 Cubix SP1 Blade Server
Chapter 6 Cubix SP1 Blade Server Introduction Cubix designed the SP1 Blade Server to fit inside a BladePoint or BladeStation enclosure. The Blade Server features the Intel Pentium 4 processor, the Intel
More informationI/O Systems. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University
I/O Systems Jinkyu Jeong (jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics Device characteristics Block device vs. Character device Direct I/O vs.
More informationCeleron EPIC Computer with GUI and Dual Ethernet SBC4685
Celeron EPIC Computer with GUI and Dual SBC4685 Features Ready to run Celeron/Pentium III computer Color flat-panel support Four serial ports CAN Bus interface PC/104 & PC/104-Plus expansion The SBC4685
More informationCSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware
CSE 120 July 27, 2006 Day 8 Input/Output Instructor: Neil Rhodes How hardware works Operating Systems Layer What the kernel does API What the programmer does Overview 2 Kinds Block devices: read/write
More informationChe-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University
Che-Wei Chang chewei@mail.cgu.edu.tw Department of Computer Science and Information Engineering, Chang Gung University l Chapter 10: File System l Chapter 11: Implementing File-Systems l Chapter 12: Mass-Storage
More informationOutline. Operating Systems: Devices and I/O p. 1/18
Outline Diversity of I/O devices block and character devices Organization of I/O subsystem of kernel device drivers Common hardware characteristics of device I/O subsystem tasks Operating Systems: Devices
More informationDesign with Microprocessors
Design with Microprocessors Year III Computer Science 1-st Semester Lecture 11: I/O transfer with x86 I/O Transfer I/O Instructions We discussed IN, OUT, INS and OUTS as instructions for the transfer of
More informationAusgewählte Betriebssysteme - Mark Russinovich & David Solomon (used with permission of authors)
Outline Windows 2000 - The I/O Structure Ausgewählte Betriebssysteme Institut Betriebssysteme Fakultät Informatik Components of I/O System Plug n Play Management Power Management I/O Data Structures File
More informationThe Purpose of Interrupt
Interrupts 3 Introduction In this chapter, the coverage of basic I/O and programmable peripheral interfaces is expanded by examining a technique called interrupt-processed I/O. An interrupt is a hardware-initiated
More informationI/O AND DEVICE HANDLING Operating Systems Design Euiseong Seo
I/O AND DEVICE HANDLING 2016 Operating Systems Design Euiseong Seo (euiseong@skku.edu) I/O Hardware Incredible variety of I/O devices Common concepts Port Bus (daisy chain or shared direct access) Controller
More informationSystems Architecture II
Systems Architecture II Topics Interfacing I/O Devices to Memory, Processor, and Operating System * Memory-mapped IO and Interrupts in SPIM** *This lecture was derived from material in the text (Chapter
More informationDate and Time The date is factory set to the date of the BIOS build. The date and time are editable. NumLock
EPIC-2 CMOS SETUP PARAMETERS This article provides reference information and tips for setting CMOS Setup parameters on the EPIC-2 (Gecko). Start CMOS Setup by pressing Delete during the early boot cycle.
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Spring 2018 Lecture 2 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 2 What is an Operating System? What is
More informationI/O Handling. ECE 650 Systems Programming & Engineering Duke University, Spring Based on Operating Systems Concepts, Silberschatz Chapter 13
I/O Handling ECE 650 Systems Programming & Engineering Duke University, Spring 2018 Based on Operating Systems Concepts, Silberschatz Chapter 13 Input/Output (I/O) Typical application flow consists of
More informationThis page intentionally left blank
This page intentionally left blank 216 THE DIGITAL LOGIC LEVEL CHAP. 3 and in 1995, 2.1 came out. 2.2 has features for mobile computers (mostly for saving battery power). The bus runs at up to 66 MHz and
More information8085 Interrupts. Lecturer, CSE, AUST
8085 Interrupts CSE 307 - Microprocessors Mohd. Moinul Hoque, 1 Interrupts Interrupt is a process where an external device can get the attention of the microprocessor. The process starts from the I/O device
More informationUnit 2 : Computer and Operating System Structure
Unit 2 : Computer and Operating System Structure Lesson 1 : Interrupts and I/O Structure 1.1. Learning Objectives On completion of this lesson you will know : what interrupt is the causes of occurring
More informationTD220 System Resources
I- 50970232 - TD-220 System Resources Abstract: This document contains system resource information for TD-220 systems. Information: TD220 System Resources September 16, 1997 Document Changes Date Description
More informationTABLE OF CONTENTS 1. INTRODUCTION 2. SPECIFICATION 3. HARDWARE INSTALLATION 6EX 1.1. PREFACE KEY FEATURES PERFORMANCE LIST...
6EX TABLE OF CONTENTS 1. INTRODUCTION 1.1. PREFACE...1-1 1.2. KEY FEATURES...1-1 1.3. PERFORMANCE LIST...1-2 1.4. BLOCK DIAGRAM...1-3 1.5. INTRODUCE THE Pentium II Processor & AGP...1-4 1.6 What is AGP?...
More informationChapter 1 Computer System Overview
Operating Systems: Internals and Design Principles Chapter 1 Computer System Overview Ninth Edition By William Stallings Operating System Exploits the hardware resources of one or more processors Provides
More informationA First Look at Microprocessors
A First Look at Microprocessors using the The General Prototype Computer (GPC) model Part 4 Ports CPU Ecosystem All CPUs need RAM, ROM, a clock source and reset circuit, and power. Power Supply 1 Vio Vcore
More informationTABLE OF CONTENTS 1. INTRODUCTION 2. SPECIFICATION 3. HARDWARE INSTALLATION. Table of Contents 1.1. PREFACE KEY FEATHERS...
Table of Contents TABLE OF CONTENTS 1. INTRODUCTION 1.1. PREFACE... 1-1 1.2. KEY FEATHERS... 1-1 1.3. PERFORMANCE LIST... 1-2 1.4. BLOCK DIAGRAM... 1-3 1.5. INTRODUCE THE PENTIUM II/ III PROCESSORS...
More informationECE 571 Advanced Microprocessor-Based Design Lecture 3
ECE 571 Advanced Microprocessor-Based Design Lecture 3 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 30 January 2018 Homework #1 was posted Announcements 1 Microprocessors Also
More informationManual: Errata 1 P R E L I M I N A R Y. Manual Index: 07. CP605 Manual: 25095
CP605 Errata 1 Manual Index: 07 Table of Contents: 1. Reference: Page 5-3, Chapter 5, Phoenix BIOS... 1-3 ID 25095, Rev. 07 Errata 1-1 CP605 This page has been intentionally left blank. Errata 1-2 ID 25095,
More informationI/O Systems. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)
I/O Systems Amir H. Payberah amir@sics.se Amirkabir University of Technology (Tehran Polytechnic) Amir H. Payberah (Tehran Polytechnic) I/O Systems 1393/9/15 1 / 57 Motivation Amir H. Payberah (Tehran
More informationChapter 13: I/O Systems
Chapter 13: I/O Systems Chapter 13: I/O Systems I/O Hardware Application I/O Interface Kernel I/O Subsystem Transforming I/O Requests to Hardware Operations Streams Performance 13.2 Silberschatz, Galvin
More information